package com.powernode.model.entity.order;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.powernode.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

@EqualsAndHashCode(callSuper = false)
@Data
@Schema(description = "OrderComment")
@TableName("order_comment")
public class OrderComment extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "订单ID")
    @TableField("order_id")
    private Long orderId;
    @Schema(description = "配送员ID")
    @TableField("driver_id")
    private Long driverId;
    @Schema(description = "顾客ID")
    @TableField("customer_id")
    private Long customerId;
    @Schema(description = "评分，1星~5星")
    @TableField("rate")
    private Integer rate;
    @Schema(description = "备注")
    @TableField("remark")
    private String remark;
    @Schema(description = "状态（1：未申诉、2：已申诉、3：申诉失败、4：申诉成功）")
    @TableField("status")
    private Integer status;
    @Schema(description = "申诉工作流ID")
    @TableField("instance_id")
    private String instanceId;
}